Yes.
Remember that DO...LOOP
,
and IF...END IF
, are like "brackets" that show
which statements are being affected by the control structure.
Each starting bracket such as
DO
has its matching ending bracket,
such as LOOP
.
The statements in between matching brackets are controled by the control
structure.
It is important to keep track of which "starting bracket" matches which
"ending bracket."
Sometimes a set of brackets are contained within another matching set.
For example, look at the mathcing brackets
IF
... END IF
contained within the
DO WHILE
...LOOP
in the above program.
Does the following sentence use parentheses correctly?
To best please bears (and little girls), porridge should be served hot (but not too hot) in bowls of appropriate size (16 ounce bowls (one pint) for small bears, more for larger bears).